package other;

import java.util.Scanner;

//小朋友搬桌子：年龄大于7岁，可与搬动桌子；如果年龄大于5岁，性别是男，可与搬桌子；否则不可与搬动桌子，提示你还小
public class movethetable {
    public static void main(String[] args){
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入小朋友的年龄");
        int age = sc.nextInt();

        if(age>=7){
            System.out.println("yes");
        }else if (age>=5){
            System.out.println("请输入小朋友的性别");
            String str=sc.next();
            char gender = str.charAt(0);
            if (gender=='男'){
                System.out.println("yes");
            }else{
                System.out.println("no");
            }
        }else{
            System.out.println("no");
        }
    }
}
